package com.auth2.user.controller;

import com.auth2.user.feign.ResouceFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author zl-pc
 * @Date 2020/8/31
 * @Version 1.0
 **/
@RestController
public class UserController {
    @Autowired
    private ResouceFeignClient resouceFeignClient;

    @GetMapping("/user")
    public  String GetUser(){
        return  resouceFeignClient.queryUser();
    }

}
